<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<MVCWeb.Models.ViewData.NewsNewViewData>" %>

<asp:content id="Content2" contentplaceholderid="head" runat="server">
    <title>
        <%= HttpUtility.HtmlDecode(ViewData.Model.News.Title) %></title>
</asp:content>
<asp:content id="Content1" contentplaceholderid="MainContent" runat="server">
    <table cellpadding="4" cellspacing="1" border="0" width="100%">
        <tr>
            <td valign="top" style="width: 1%" colspan="2">
                <% if (!string.IsNullOrEmpty(ViewData.Model.News.ImageUrl))
                   { %>
                <img width="200px" alt="" visible='<%= ViewData.Model.News.ImageUrl.Length > 0 %>' src='<%= ViewData.Model.News.ImageUrl %>' />
                <%} %>
            </td>
            <td style="width: 100%" valign="top">
                <a class="title" href='#'>
                    <%= HttpUtility.HtmlDecode(ViewData.Model.News.Title)%></a>
                <div style="padding-top: 2px">
                </div>
                Date:
                <%= ViewData.Model.News.PublishedDate.ToShortDateString()%>
                <div style="padding-top: 2px">
                </div>
                <%= HttpUtility.HtmlDecode(ViewData.Model.News.SubTitle)%>
                <div style="padding-top: 2px">
                </div>
                <%= HttpUtility.HtmlDecode(ViewData.Model.News.Description)%>
            </td>
        </tr>
    </table>
</asp:content>
